package com.devinlee.designpatterns.factory.abstract_factory.factory;

import com.devinlee.designpatterns.factory.abstract_factory.product.*;

/**
 * 抽象工厂模式-具体工厂类
 */
public class BiyadiFactory implements Factory{

    private String factoryName = "比亚迪工厂";

    @Override
    public Car createCar() {
        return new BMW(factoryName);
    }

    @Override
    public Phone createPhone() {
        return new Apple(factoryName);
    }
}
